<link href="<?=base_url();?>required/css/datepicker.css" rel="stylesheet" type="text/css">
<link href="<?=base_url();?>required/css/clockpick.css" rel="stylesheet" type="text/css">
<link href="<?=base_url();?>required/css/jquery_accordion.css" rel="stylesheet" type="text/css">
<link href="<?=base_url();?>required/css/flora_tabs.css" rel="stylesheet" type="text/css">
<div id="post">

<?php
$attributes = array('class' => 'edit_page', 'id' => 'edit_page');
			 
			
//			date('Y-m-d H:i:s')echo date("2002-09-08".' H:i:s');
			
	switch($this->validation->Status)
	{
		case 1: 	 $status='<option value="1" selected>Published</option>
                      <option value="2">Unpublished</option>
                      <option value="3">Draft</option>
                      <option value="4">Private</option>
                      <option value="5">Trash</option>';break;
		case 2: 	 $status='<option value="1" >Published</option>
                      <option value="2" selected>Unpublished</option>
                      <option value="3">Draft</option>
                      <option value="4">Private</option>
                      <option value="5">Trash</option>';break;
		case 3: 	 $status='<option value="1">Published</option>
                      <option value="2">Unpublished</option>
                      <option value="3" selected>Draft</option>
                      <option value="4">Private</option>
                      <option value="5">Trash</option>';break;
		case 4: 	 $status='<option value="1">Published</option>
                      <option value="2">Unpublished</option>
                      <option value="3">Draft</option>
                      <option value="4" selected>Private</option>
                      <option value="5">Trash</option>';break;
		case 5: 	 $status='<option value="1">Published</option>
                      <option value="2">Unpublished</option>
                      <option value="3">Draft</option>
                      <option value="4">Private</option>
                      <option value="5" selected>Trash</option>';break;
					  
		default: 	 $status='<option value="1" selected>Published</option>
                      <option value="2">Unpublished</option>
                      <option value="3">Draft</option>
                      <option value="4">Private</option>
                      <option value="5">Trash</option>';break;			  			  			  			  			  
	}		
			 
echo form_open('admin/EditPage/'.$this->uri->segment(3).'/'.$this->uri->segment(4), $attributes);
echo "<div class=\"error\" >".$this->validation->error_string."</div>"; ?>
<div id="titlepost">
  <p>Page URL Title</p><p>
    <input type="text" name="Title" id="Title" value="<?=$this->validation->Title?>">
  </p>

  <p>Page Label</p>
  <p>
    <input type="text" name="PageLabel" id="PageLabel" value="<?=$this->validation->PageLabel?>">
</p>
</div>
<div id="postcontent"><p>Page Content</p><textarea name="Content" id="Content" rows="10" cols="60" ><?=$this->validation->Content;?></textarea></div>
<br><br>
<div id="container" class="flora">
            <ul>
               <!-- <li><a href="#HTML-Meta-Tags"><span>HTML Meta Tags</span></a></li> -->
                <li><a href="#Page-Status"><span>Page Status</span></a></li>
            </ul>
           <!-- <div id="HTML-Meta-Tags">
                <table width="376" border="0" class="TabbedPanelsContent"  style="width:500px;">
                                  <tr>
                                    <td width="70">Meta</td>
                                    <td width="420"><textarea name="Meta" id="Meta" cols="45" rows="1"><?=$this->validation->Meta;?></textarea></td>
                                  </tr>
                                  <tr>
                                    <td>Keywords&nbsp;</td>
                                    <td><textarea name="Keyword" cols="45" rows="1" id="Keyword"><?=$this->validation->Keyword;?></textarea></td>
                                  </tr>
                                  <tr>
                                    <td>Description&nbsp;</td>
                                    <td><textarea name="Description" id="Description" cols="45" rows="1"><?=$this->validation->Description;?></textarea></td>
                                  </tr>
                          </table>
      		 </div> -->
             <div id="Page-Status">
             	Status : Choose status
                    <select name="Status" id="Status">
                     <?=$status?>
                    </select>
             </div>
    </div><!--end of container -->
                   
<p>
  
  <input name="post" type="submit" value="Post Page"  class="small-button"/> 
  &nbsp;&nbsp;&nbsp;
  <input type="reset" name="Reset" id="button" value="Reset" class="small-button" />
 
  <?=form_close()?>
</p>
</div>
<script language="javascript" type="text/javascript" src="<?=base_url()?>required/tiny/jscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
	// General options
	mode : "exact",
	elements : "Content",
	theme : "advanced",
	skin : "o2k7",	
	plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
	

	// Theme options
	theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontselect,fontsizeselect",
	theme_advanced_buttons2 : "cut,copy,paste,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,image,|,forecolor,backcolor,|,insertlayer,moveforward,movebackward,absolute,|,advhr,|,sub,sup",
	theme_advanced_buttons3 : "tablecontrols,|,charmap,iespell,media,|,print,|,fullscreenstyleprops,|,abbr,attribs,mybutton,code",
	theme_advanced_buttons4 : "",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "left",
	theme_advanced_statusbar_location : "bottom",
	theme_advanced_resizing : true,

	// Example content CSS (should be your site CSS)
	content_css : "css/content.css",

	// Drop lists for link/image/media/template dialogs
	template_external_list_url : "lists/template_list.js",
	external_link_list_url : "lists/link_list.js",
	external_image_list_url : "lists/image_list.js",
	media_external_list_url : "lists/media_list.js"
	
	

});
</script>

<script src="<?=base_url()?>required/js/jquery-ui.js"type="text/javascript"></script>

<script type="text/javascript">
		//<![CDATA[
			$(document).ready(function (){ 
				
				$("#list1a").accordion();
				$('#container > ul').tabs({ 
    fx: { 
        opacity: "toggle" 
    } 
});
				
			});
		//]]>
</script>


